package example.lesson02_01;

public class TestClassAndObject {
    public static void main(String[] args) {
        Person p1 = new Person();

        p1.age = 20;

        p1.printInfo();

        int i=30;
        Person p2 = new Person();
        p2.age = i;
        p2.printInfo();
    }
}

class Person{
    public int age;

    public void printInfo(){
        System.out.println("age:"+age);
    }


}
